package com.example.cdpbookstore.service.impl;

import com.example.cdpbookstore.dao.CategoryDao;
import com.example.cdpbookstore.dao.impl.CategoryDaoImpl;
import com.example.cdpbookstore.pojo.entity.Category;
import com.example.cdpbookstore.service.CategoryService;

import java.util.List;

public class CategoryServiceImpl implements CategoryService {
    private final CategoryDao categoryDao = new CategoryDaoImpl();
    @Override
    public List<Category> list() {
        return categoryDao.list();
    }
}
